package net.net23.sysdent;

import java.util.ArrayList;

import javax.swing.JComponent;
import javax.swing.JLabel;

public class PropertiesFields {

	private ArrayList<JLabel> labels;
	private ArrayList<JComponent> components;

	public PropertiesFields() {
		setLabels(new ArrayList<JLabel>());
		setComponents(new ArrayList<JComponent>());
	}

	public void addField(String label, JComponent component) {
		getLabels().add(new JLabel(label));
		getComponents().add(component);
	}

	public void setLabels(ArrayList<JLabel> labels) {
		this.labels = labels;
	}

	public ArrayList<JLabel> getLabels() {
		return labels;
	}

	public void setComponents(ArrayList<JComponent> components) {
		this.components = components;
	}

	public ArrayList<JComponent> getComponents() {
		return components;
	}
	
}
